package com.ycx.ycxmybatismanagement.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    private Integer id;
    private String name;
    private String no;
    private Integer gender;
    private String phone;
    private Integer degree;
    private String idCard;
    private Integer isCollege;
    private String address;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate graduationDate;
    private Integer violationCount;
    private Integer violationScore;
    private Integer clazzId;
    private LocalDate createTime;
    private LocalDate updateTime;

    public Student(Integer id, Integer violationScore) {
        this.id = id;
        this.violationScore = violationScore;
    }
}
